package PTA1.ti7;

import java.util.Scanner;

/**
 * @author Lenovo
 */
public class Main {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int x=scanner.nextInt();
        double y =scanner.nextDouble();
        double sum =x+y;
        System.out.println(sum);
        double sqrtResult=Math.sqrt(sum);
        System.out.println(sqrtResult);
        String sqrtStr=String.valueOf(sqrtResult);
        if (sqrtStr.length()>=6){
            System.out.println(sqrtStr.substring(0,6));
        }
        System.out.println(sqrtStr);
        scanner.close();

    }
}
